﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdjustSpecificYear.aspx.cs"
    MasterPageFile="~/Site.Master" Inherits="RCREEE.Web.AdjustSpecificYear" Culture="auto"
    UICulture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Adjust Specific Years</title>
    <style>
        .listClass
        {
        }
        .ListDiv
        {
            background-color: #fff0f0;
            height: 40em;
            padding: 1.5em 1.5em 0 1.5em;
        }
        .style1
        {
            color: #333333;
        }
        .style2
        {
            width: 128px;
        }
        .style3
        {
            width: 193px;
        }
    </style>
    <script type="text/javascript">
        $().ready(function () {
            $('#dialogContent').dialog({
                autoOpen: false,
                modal: true,
                bgiframe: true,
                title: "Confirm Delete",
                width: 300,
                height: 200
            });
        });

        function openDeletePopup(uniqueID) {
            $('#dialogContent').dialog('option', 'buttons',
                {
                    "OK": function () { __doPostBack(uniqueID, ''); $(this).dialog("close"); },
                    "Cancel": function () { $(this).dialog("close"); }
                });

            $('#dialogContent').dialog('open');

            return false;
        }

    </script>
    <div id="header">
        <div id="section">
            <table width="100%">
                <tr>
                    <td width="20%" align="center" valign="middle">
                        <img src="Images/LogoRCREEE_Transparent.png" width="200px" />
                    </td>
                    <td width="60%" align="center" valign="middle">
                        <img src="Images/areeed-ba-txtr.png" width="600px" />
                    </td>
                    <td width="25%" align="center" valign="top">
                        <img src="Images/las-logo.png" width="85px" />
                    </td>
                </tr>
            </table>
        </div>
        <ul>
            <li><a href="Default.aspx">Home</a></li>
            <li><a href="Index.aspx">Index</a></li>
            <li><a href="Topics.aspx">Topics</a></li>
            <li><a href="CountrySelector.aspx">Countries</a></li>
            <li><a href="Aboutus.aspx">About Us</a></li>
            <li><a href="contactus.aspx">Contact us</a></li>
        </ul>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="scriptMan" runat="server">
    </asp:ScriptManager>
    <div>
        <div id="dialogContent" style="font-size: small">
            <p>
                Are you sure you want to delete?</p>
        </div>
        <asp:Panel ID="pnlEnergyConsumption" runat="server" GroupingText="Energy Consumption Development Years">
            <asp:UpdateProgress ID="Up1" runat="Server" AssociatedUpdatePanelID="updatePnlEnergyConsumption">
                <ProgressTemplate>
                    <div class="progressBackgroundFilter">
                    </div>
                    <div class="processMessage">
                        Loading...<br />
                        <br />
                        <img alt="Loading..." src="Images/Loading.gif" />
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:UpdatePanel ID="updatePnlEnergyConsumption" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:GridView ID="gvEnergyConsumption" runat="server" AutoGenerateColumns="False"
                        CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None"
                        OnRowDeleting="gvEnergyConsumption_RowDeleting">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="Year" HeaderText="Year" />
                            <asp:TemplateField HeaderText="Delete" meta:resourcekey="TemplateFieldResource5">
                                <ItemTemplate>
                                    <asp:Button ID="lnkDelete" runat="server" Text='Delete' CommandName="Delete" meta:resourcekey="lnkDeleteResource1"
                                        OnClientClick="javascript:return openDeletePopup(this.name);"></asp:Button>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EAEAEA" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
                    </asp:GridView>
                    <table>
                        <tr>
                            <td>
                                <asp:Button ID="btnAddEnergyYear" runat="server" Text="Add New" OnClick="btnAddEnergyYear_Click" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtNewEnergyYear" runat="server" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </asp:Panel>
        <br />
        <asp:Panel ID="pnlStrategicObjectives" runat="server" GroupingText="Strategic Objectives Years">
            <asp:UpdateProgress ID="UpdateProgress1" runat="Server" AssociatedUpdatePanelID="updatePnlStrategicObjectives">
                <ProgressTemplate>
                    <div class="progressBackgroundFilter">
                    </div>
                    <div class="processMessage">
                        Loading...<br />
                        <br />
                        <img alt="Loading..." src="Images/Loading.gif" />
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:UpdatePanel ID="updatePnlStrategicObjectives" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:GridView ID="gvStrategicObjectives" runat="server" AutoGenerateColumns="False"
                        CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None"
                        OnRowDeleting="gvStrategicObjectives_RowDeleting">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="Year" HeaderText="Year" />
                            <asp:TemplateField HeaderText="Delete" meta:resourcekey="TemplateFieldResource5">
                                <ItemTemplate>
                                    <asp:Button ID="lnkDelete" runat="server" Text='Delete' CommandName="Delete" meta:resourcekey="lnkDeleteResource1"
                                        OnClientClick="javascript:return openDeletePopup(this.name);"></asp:Button>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EAEAEA" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
                    </asp:GridView>
                    <table>
                        <tr>
                            <td>
                                <asp:Button ID="btnAddNewStrategicYear" runat="server" Text="Add New" OnClick="btnAddNewStrategicYear_Click" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtNewStrategicYear" runat="server" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </asp:Panel>
    </div>
</asp:Content>
